var wxUrl = "https://md2-beta-wx.1miaodao.cn/wx/tenant/openid";
var wxError = "https://md2-beta-wx.1miaodao.cn/wx/tenant/log/error";
var url = "https://md2-beta-tenant.1miaodao.cn/wx";

//var wxUrl = "https://wx.1miaodao.cn/wx/tenant/openid";
//var wxError = "https://wx.1miaodao.cn/wx/tenant/log/error";
//var url = "https://sh.1miaodao.cn/wx";

//var url = "http://192.168.1.4:8081/wx";
//var url = "http://192.168.2.100:8081/wx";
//var url = "http://192.168.1.34:8081/wx"

// 获取短信验证码
var authCode = url + "/user/anth/getAuthCode";
// 用户认证(登录\绑定手机号)
var login = url + "/a/anth/bindingMobile";
// 获取个人及商家信息
var getUserInfo = url + "/user/mng/getUserInfo";
// 首页控件请求
var getHomeFarem = url + "/applet/getHomeFarem";
// 获取商品分类
var getProductGroup = url + "/wxconf/product/getProductGroup";
// 商品列表
var getProductList = url + "/product/getProductList";
// 商品详情
var getProductDetails = url + "/product/getProductDetails";
// 购物车列表
var getShoppingCartList = url + "/shop/product/getShoppingCartList";
// 添加购物车
var addShoppingCart = url + "/shop/product/addShoppingCart";
// 删除购物车
var delShoppingCart = url + "/shop/product/delShoppingCart";
//修改购物车数量
var modifyShoppingCar = url + "/shop/product/modifyShoppingCar";
// 生成订单
var createOrder = url + "/user/order/createOrder1";
// 全部订单
var getOrderList = url + "/user/order/getOrderList";
// 取消订单
var delOrder = url + "/user/order/delOrder";
// 认确收货
var endOrder = url + "/user/order/endOrder";
// 更新订单
var modifyOrder = url + "/user/order/modifyOrder1";
// 订单详情
var getOrderDetails = url + "/user/order/getOrderDetails";
// 收货地址
var getAddressList = url + "/user/user/getAddressList";
// 编辑收货地址
var modifyAddress = url + "/user/user/modifyAddress";
// 删除收货地址
var delAddress = url + "/user/user/delAddress";
//请求默认收货地址
var defualtAddress = url + "/user/defualtAddress";
// 编辑个人资料
var modifyUserInfo = url + "/user/user/modifyUserInfo";
// 修改手机号
var modifyMobile = url + "/user/user/modifyMobile";
// 商家优惠券列表
var getTenntCouponList = url + "/wxconf/coupon/getTenntCouponList";
// 我的优惠券列表
var getCouponList = url + "/wxconf/coupon/getCouponList";
// 弹屏优惠券列表
var getCoupon = url + "/wxconf/coupon/getCoupon";
// 领取优惠券
var receiveCoupon = url + "/wxconf/coupon/receiveCoupon";
// 当前商品可使用优惠券
var canUseCouponList = url + "/wxconf/coupon/canUseCouponList";
// 关于我们
var about = url + "/user/about";
// 会员卡列表
var getMemberCardList = url + "/wxconf/memberCard/getMemberCardList";
// 帐户支付
var accountPay = url + "/user/pay/accountPay";
// 微信支付
var wxPay = url + "/pay/pre";
// 帐户充值接口
var recharge = url + "/user/recharge";
//  微信充值接口
var wxRecharge = url + '/pay/recharge';
// 明细列表
var getBills = url + "/user/user/getBills";
// 单个明细
var getBillDetails = url + "/user/user/getBillDetails";


//////////////////////////////////////////////////////////////////
//2.1
//绑定上级商户ID
var bindUserFormQRcode = url + '/user/user/bindUserFormQRcode';
//佣金收益
var getProfitList = url + "/wxconf/distribution/getProfitList";
//提现到帐记录
var withdrawalsRecord = url + "/wxconf/distribution/withdrawalsRecord";
// 注水
var getSaleInfo = url + "/user/mng/getSaleInfo";
//提交申请佣金提现
var applyWithdrawals = url + "/wxconf/distribution/applyWithdrawals";
//申请佣金列表
var getCommissionRecord = url + "/wxconf/distribution/getCommissionRecord";
//统计分享受
var updateFxcs = url + "/user/updateFxcs";
var upload = url + '/user/mng/upload';
//售后
var orderReturn = url + '/user/orderReturn';
//售后图片上传
var orderload = url + '/user/orderload';
//提交退货物流
var orderReturnEx = url + '/user/orderReturnEx';
//门店列表
var storeList = url + '/wxconf/tenant/storeList';
//绑定微信的手机号
var wxphone = url + '/user/mng/wxphone';
//到店扫码
var end = url + '/user/order/end';
//获取积分规则
var integralRule = url + '/wxconf/integral/integralRule';
//积分明细
var integralList = url + '/wxconf/integral/integralList';
//积分详情
var integraldetail = url + '/wxconf/integral/integraldetail';
// 获取拼团规则
var groupRule = url + '/wxconf/group/groupRule';
// 售后列表
var getRefundOrderList = url + '/user/order/getRefundOrderList';
// 售后详情
var getRefundOrderDetail = url + '/user/order/getRefundOrderDetail';
//拼团列表
var groupList = url + '/wxconf/group/groupList';

module.exports = {
  wxUrl: wxUrl,
  wxError: wxError,
  authCode: authCode,
  login: login,
  getUserInfo: getUserInfo,
  getHomeFarem: getHomeFarem,
  getProductGroup: getProductGroup,
  getProductList: getProductList,
  getProductDetails: getProductDetails,
  getShoppingCartList: getShoppingCartList,
  addShoppingCart: addShoppingCart,
  delShoppingCart: delShoppingCart,
  modifyShoppingCar: modifyShoppingCar,
  createOrder: createOrder,
  getOrderList: getOrderList,
  getOrderDetails: getOrderDetails,
  delOrder: delOrder,
  endOrder: endOrder,
  modifyOrder: modifyOrder,
  getAddressList: getAddressList,
  modifyAddress: modifyAddress,
  delAddress: delAddress,
  defualtAddress: defualtAddress,
  modifyUserInfo: modifyUserInfo,
  modifyMobile: modifyMobile,
  getCouponList: getCouponList,
  getCoupon: getCoupon,
  getTenntCouponList: getTenntCouponList,
  receiveCoupon: receiveCoupon,
  canUseCouponList: canUseCouponList,
  about: about,
  getMemberCardList: getMemberCardList,
  accountPay: accountPay,
  wxPay: wxPay,
  recharge: recharge,
  wxRecharge: wxRecharge,
  getBills: getBills,
  getBillDetails: getBillDetails,

  bindUserFormQRcode: bindUserFormQRcode,
  getProfitList: getProfitList,
  withdrawalsRecord: withdrawalsRecord,
  getSaleInfo: getSaleInfo,
  applyWithdrawals: applyWithdrawals,
  getCommissionRecord: getCommissionRecord,
  updateFxcs: updateFxcs,
  upload: upload,
  orderReturn: orderReturn,
  orderload: orderload,
  storeList: storeList,
  orderReturnEx: orderReturnEx,
  wxphone: wxphone,
  end: end,
  integralRule: integralRule,
  integralList: integralList,
  integraldetail: integraldetail,
  groupRule: groupRule,
  getRefundOrderList: getRefundOrderList,
  getRefundOrderDetail: getRefundOrderDetail,
  groupList: groupList
}